Skip to content

Closes #450. Fixed cohort factor list.#452

Open
haiksu wants to merge 2 commits intocatalyst:MOODLE_400_STABLEfrom
mediamaisteri:450-fix-cohort-factor-list
Open

Closes #450. Fixed cohort factor list.#452
haiksu wants to merge 2 commits intocatalyst:MOODLE_400_STABLEfrom
mediamaisteri:450-fix-cohort-factor-list

Conversation

@haiksu
Copy link

@haiksu haiksu commented Dec 20, 2023

Instead of using cohort_get_all_cohorts() method, which returns only 25 cohorts, this modification fetches all the cohorts straight from the database without limitations.

Removed unnecessary global $DB
@danmarsden
Copy link
Member

Thanks @haiksu - please note that as this plugin is now part of Moodle core - we need to address any issues/bugs/improvements in the upstream "latest" release before we backport to this repository to support older Moodle sites.
I note the current Moodle upstream release has the same "older" code:
https://github.com/moodle/moodle/blob/main/admin/tool/mfa/factor/cohort/settings.php#L41

If you end up creating an upstream Moodle tracker for this and fixing it there - please come back and post the details here so we can then look at merging this into the repo here for older sites - otherwise we need to close this as "won't fix."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants